# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Tom K <tomk@runbox.com>

pkgname=perl-fuse
pkgver=0.16.1
pkgrel=13
pkgdesc="write filesystems in Perl using FUSE"
arch=('loong64' 'x86_64')
url="https://search.cpan.org/dist/Fuse"
depends=('perl' 'fuse2')
license=('GPL')
source=(https://search.cpan.org/CPAN/authors/id/D/DP/DPATES/Fuse-$pkgver.tar.gz
	build-fix.patch)
md5sums=('29534329808d8cf42fc78ca26c6fa698'
         '16d985400e620286efdf4610d78cb5d6')

prepare() {
  cd  "$srcdir"/Fuse-$pkgver
#  patch -p1 <"$srcdir"/build-fix.patch
}

build() {
  cd  "$srcdir"/Fuse-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Fuse-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
